package com.tanhua.dubbo.api;

import com.tanhua.model.enums.CommentType;
import com.tanhua.model.mongo.Comment;

import java.util.List;

/**
 * @Description: test
 * @Create by: JJ菜菜
 * @Date: 2021/12/3 15:50
 */

public interface CommentsApi {

    List<Comment> findComments(Integer page, Integer pageSize, String movementId, CommentType comment);

    // 保存评论
    Integer saveComments(Comment comment1);

    // 是否点赞
    boolean hasComment(String movementId, Long userId, CommentType like);

    Integer removeComment(Comment comment);
}
